import request from '@/utils/request'

// 查询食品质量安全隐患列表
export function listOpmFoodSafeHidden(query) {
  return request({
    url: '/food/opmFoodSafeHidden/list',
    method: 'get',
    params: query
  })
}

// 查询食品质量安全隐患详细
export function getOpmFoodSafeHidden(id) {
  return request({
    url: '/food/opmFoodSafeHidden/' + id,
    method: 'get'
  })
}

// 新增食品质量安全隐患
export function addOpmFoodSafeHidden(data) {
  return request({
    url: '/food/opmFoodSafeHidden',
    method: 'post',
    data: data
  })
}

// 修改食品质量安全隐患
export function updateOpmFoodSafeHidden(data) {
  return request({
    url: '/food/opmFoodSafeHidden',
    method: 'put',
    data: data
  })
}

// 删除食品质量安全隐患
export function delOpmFoodSafeHidden(id) {
  return request({
    url: '/food/opmFoodSafeHidden/' + id,
    method: 'delete'
  })
}
